:root {
  --light-mode-color: #fff;
  --dark-mode-color: #000;
}
* {
  box-sizing: border-box;
}

body{
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background:var(--light-mode-color);
  display: flex;
  justify-content: center;
}

.container {
  margin: 20px;
}


.modeBtn {
  background: var(--dark-mode-color);
  border: 0;
  color: var(--light-mode-color);
  border-radius: 5px;
  padding: 8px 16px;
  margin: 30px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: 0.3s linear;
}

.modeBtn.click {
  box-shadow: none;
  transform: translateY(-2px);
}

.clockContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clockContainer h3 {
  font-size: 60px;
  font-weight: 300;
  margin: 30px auto;
}

.clockContent {
  position: relative;
  width: 200px;
  height: 200px;
}

.clockPosition {
  position: absolute;
  top: calc(50% + 4px);
  left: calc(50% + 4px);
  height: 2px;
  background: #000;
  transform-origin: top left;
}

.hour {
  width: 50px;
  /* border-bottom: 10px solid var(--dark-mode-color); */
  /* 旋转的原点 */
  transform: rotate(10deg);
}

.minute {
  width: 60px;
  /* border-bottom: 13px solid var(--dark-mode-color); */
  transform: rotate(30deg);
}

.second {
  width: 70px;
  background: red;
  /* border-bottom: 15px solid red; */
  transform: rotate(160deg);
}

.heart {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  border: 2px solid red;
}

.clockText {
  color: #AAAAAA;
  font-size: 14px;
}

.day {
  color: var(--light-mode-color);
  background: var(--dark-mode-color);
  border-radius: 50%;
}